package com.rupertjones.globalcron.server.resources;

import org.brownflat.dbinit.upgrade.Upgrade;
import org.springframework.stereotype.Component;

/**
 * <p>&copy Rupert Jones 2011,2012</p>
 *
 * @author rup
 */
@Component
public class Upgrade0021CreateReadOnly implements Upgrade {

    private static final int VERSION = 21;

    @Override
    public int getSequence() {
        return VERSION;
    }

    @Override
    public String getSql() {
        return "INSERT INTO role (id, name) VALUES (2, 'READ_ONLY');";
    }

    @Override
    public String getName() {
        return "Create read only role";
    }
}
